﻿using Api.DTO;
using ErrorCode;
using MediatR;

namespace Api.Application.Command.Leave
{
    public class GetLeaveCommand:IRequest<ApiPaging<LeaveDTO>>
    {
        public int Index { get; set; } = 1;
        public int Size { get; set; } = 15;
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? LeaveStartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>

        public DateTime? LeaveEndTime { get; set; }
        /// <summary>
        /// true 已审批
        /// false  未
        /// </summary>
        public bool? ApprovalState { get; set; }
        /// <summary>
        /// 当前登录人
        /// </summary>
        public string? UserName { get; set; }
        public string? CurrentUser {  get; set; }

    }
}
